//

//  DFForum
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "DFPartViewController.h"
#import "EveryDaySelectVC.h"
#import "HardWareSectionController.h"
#import "MobilePhoneViewController.h"
#import "BookController.h"
#import "LoveShotViewController.h"
#import "PadViewController.h"
#import "UnionViewController.h"


@interface DFPartViewController ()
@property (strong, nonatomic) IBOutlet UIImageView *aImage;
@property (strong, nonatomic) IBOutlet UIImageView *bImage;
@property (strong, nonatomic) IBOutlet UIImageView *cImage;
@property (strong, nonatomic) IBOutlet UIImageView *dImage;
@property (strong, nonatomic) IBOutlet UIImageView *eImage;
@property (strong, nonatomic) IBOutlet UIImageView *fImage;
@property (strong, nonatomic) IBOutlet UIImageView *gImage;
@property (strong, nonatomic) IBOutlet UIImageView *aaImage;
@property (strong, nonatomic) IBOutlet UIImageView *bbImage;
@property (strong, nonatomic) IBOutlet UIImageView *ccImage;
@property (strong, nonatomic) IBOutlet UIImageView *ddImage;
@property (strong, nonatomic) IBOutlet UIImageView *eeImage;
@property (strong, nonatomic) IBOutlet UIImageView *ffImage;
@property (strong, nonatomic) IBOutlet UIImageView *ggImage;



@end

@implementation DFPartViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _aImage.layer.cornerRadius = 10;
    _aImage.layer.masksToBounds = YES;
    _aaImage.layer.cornerRadius = 6;
    _aaImage.layer.masksToBounds = YES;
    _bImage.layer.cornerRadius = 10;
    _bImage.layer.masksToBounds = YES;
    _bbImage.layer.cornerRadius = 6;
    _bbImage.layer.masksToBounds = YES;
    _cImage.layer.cornerRadius = 10;
    _cImage.layer.masksToBounds = YES;
    _ccImage.layer.cornerRadius = 6;
    _ccImage.layer.masksToBounds = YES;
    _dImage.layer.cornerRadius = 10;
    _dImage.layer.masksToBounds = YES;
    _ddImage.layer.cornerRadius = 6;
    _ddImage.layer.masksToBounds = YES;
    _eImage.layer.cornerRadius = 10;
    _eImage.layer.masksToBounds = YES;
    _eeImage.layer.cornerRadius = 6;
    _eeImage.layer.masksToBounds = YES;
    _fImage.layer.cornerRadius = 10;
    _fImage.layer.masksToBounds = YES;
    _ffImage.layer.cornerRadius = 6;
    _ffImage.layer.masksToBounds = YES;
    _gImage.layer.cornerRadius = 10;
    _gImage.layer.masksToBounds = YES;
    _ggImage.layer.cornerRadius = 6;
    _ggImage.layer.masksToBounds = YES;
}


- (IBAction)bBtn:(id)sender {
    HardWareSectionController *hardVC = [[HardWareSectionController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:hardVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}
- (IBAction)cBtn:(id)sender {
    MobilePhoneViewController *mobileVC = [[MobilePhoneViewController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:mobileVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}
- (IBAction)dBtn:(id)sender {
    BookController *bookVC = [[BookController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:bookVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}
- (IBAction)eBtn:(id)sender {
    LoveShotViewController *shotVC = [[LoveShotViewController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:shotVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}
- (IBAction)fBtn:(id)sender {
    PadViewController *padVC = [[PadViewController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:padVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}
- (IBAction)gBtn:(id)sender {
    UnionViewController *unionVC = [[UnionViewController alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:unionVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
}


//每日精选页面
- (IBAction)aBtn:(id)sender {
    EveryDaySelectVC *selectVC = [[EveryDaySelectVC alloc] init];
    [UIView  beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1];
    [self.navigationController pushViewController:selectVC animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];

}


@end
